package com.System;

public class Demo2 {
    public static void main(String[] args) {
        int[] arr1 = {11, 22, 0, 33, 44};
        int[] arr2 = new int[5];
        System.arraycopy(arr1, 0, arr2, 0, 2);
        System.arraycopy(arr1, 3, arr2, 3, 2);
        for (int i = 0; i < arr2.length; i++) {
            System.out.println(arr2[i]);

        }
    }
}